package com.yuan.web.action.provide;

import jxl.common.Logger;

import com.yuan.common.action.BaseAction;
import com.yuan.common.message.InformationMessage;
import com.yuan.goods.Goods;

/**
 * 用户向我们提供的商品信息
 * 
 * @author Beni
 * 
 */
public class ProvideAction extends BaseAction {

	private static final long serialVersionUID = 5220415941707783791L;

	private static final Logger logger = Logger.getLogger(ProvideAction.class);

	private Goods goods;

	/**
	 * 保存商品信息
	 * 
	 * @return
	 */
	private String save() {
		try {
			this.setInformationMessage(new InformationMessage("INF001"));
			return "success";
		} catch (Exception ex) {
			logger.error("保存商品失败", ex);
			this.setInformationMessage(new InformationMessage("ERR001"));
			return "show";
		}

	}

	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

}
